Transformation Of a Matrix